//
//  SearchHisCell.m
//  YiBaoStore
//
//  Created by 毛云河 on 2018/10/12.
//  Copyright © 2018年 小河. All rights reserved.
//

#import "SearchHisCell.h"

@implementation SearchHisCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self setSearchHisCell];
        //self.contentView.backgroundColor = [UIColor orangeColor];
    }
    return self;
}

- (void)setSearchHisCell
{
    self.leftTitlte = [[UILabel alloc]init];
    [self.contentView addSubview:self.leftTitlte];
    self.leftTitlte.textColor = RGBACOLOR(167, 166, 166, 1);
    self.leftTitlte.textAlignment = 0;
    self.leftTitlte.font = FontWithSize(14);
    
    self.closeImage = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"his_dele"]];
    [self.contentView addSubview:self.closeImage];
    
    self.closeBtn = [UIButton buttonWithType:UIButtonTypeSystem];
    [self.contentView addSubview:self.closeBtn];
    
    self.lineView = [[UIView alloc] init];
    [self.contentView addSubview:self.lineView];
    self.lineView.backgroundColor = RGBACOLOR(225, 225, 225, 1);
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.leftTitlte.frame = CGRectMake(15, 10, 200, 20);
    self.closeBtn.frame = CGRectMake(SCREENWIDTH-70-10, 0, 70, 40);
    self.closeImage.frame = CGRectMake(SCREENWIDTH-15-12, 14, 12, 12);
    self.lineView.frame = CGRectMake(15, 39, SCREENWIDTH-30, 1);
}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
